import { createRouter, createWebHistory } from "vue-router";
import index from "../view/home/index.vue";
const routes = [
  {
    path: "/",
    component: index,
  },
  // {
  //   path: "/hello",
  //   //路由懒加载
  //   component: () => import("../components/HelloWorld.vue"),
  // },
];

// 创建路由
const router = createRouter({
  history: createWebHistory(),
  routes,
});

// 导出路由
export default router;
